<?php
/**
 * ExtCycleButton class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtCycleButton extends ExtCycleButtonBase
{
    /**
     * Gets the value of ExtJS forceIcon property
     * @return String 
     */
    public function getForceIcon()
    {
    	return $this->getConfig("forceicon");
    }

    /**
     * Sets the value of ExtJS forceIcon property
     * @param String $value 
     */
    public function setForceIcon($value)
    {
    	$this->setConfig("forceicon",$value);
    }

    /**
     * Gets the value of ExtJS prependText property
     * @return String 
     */
    public function getPrependText()
    {
    	return $this->getConfig("prependtext");
    }

    /**
     * Sets the value of ExtJS prependText property
     * @param String $value 
     */
    public function setPrependText($value)
    {
    	$this->setConfig("prependtext",$value);
    }

    /**
     * Gets the value of ExtJS showText property
     * @return Boolean 
     */
    public function getShowText()
    {
    	return $this->getConfig("showtext");
    }

    /**
     * Sets the value of ExtJS showText property
     * @param Boolean $value 
     */
    public function setShowText($value)
    {
    	$this->setConfig("showtext",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'forceicon' => 'forceIcon',
            'prependtext' => 'prependText',
            'showtext' => 'showText'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'change' => array('sender','item')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'menuitems' => true
        ));
        $this->setXType('cyclebutton');
        $this->setXClass('Ext.CycleButton');
    }    
}
?>